package com.liu.utils;

import com.liu.proxyDemo.Hello;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Text {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("ApplicationContext.xml");
        Hello hello = (Hello) context.getBean("rename");
        //hello.setName("张三");
        System.out.println(hello.toString());
    }
}
